package com.luyu.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author luYu
 */
@Setter
@Getter
@ConfigurationProperties("lulu.auth.rsa")
@Component
public class RsaKeyConfig {

    {
        algorithm="RSA";

        keySize=2048;

        allowPaths=List.of("/login");
    }

    private String algorithm;


    private Integer keySize;

    private List<String> allowPaths;

}
